package com.service.firstapp.bean;


import org.springframework.jdbc.core.RowMapper;

import java.sql.ResultSet;
import java.sql.SQLException;

/**
 * Created by wjh on 2018/3/27.
 */
public class PeopleInfoRowMapper implements RowMapper<PeopleInfo> {

    @Override
    public PeopleInfo mapRow(ResultSet resultSet, int i) throws SQLException {
        PeopleInfo people = new PeopleInfo();
        people.setPeopleId(resultSet.getInt("people_id"));
        people.setSex(resultSet.getInt("sex"));
        people.setHeight(resultSet.getInt("height"));
        people.setStatus(resultSet.getInt("status"));
        return people;
    }
}
